import { findBanner } from '@/api/home'
import { onMounted, ref } from 'vue'
const userList = () => {
  const data = ref()
  async function loadBannerList () {
    const { result } = await findBanner()
    // console.log('轮播图', result)
    data.value = result
  }
  onMounted(() => {
    loadBannerList()
  })
  return { data }
}
export default userList
